/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package casino;

/**
 * This exception class handles invalid bets - ones that don't meet the minimum
 * or maximum table limits.
 * 
 * @author amaghfur
 */
public class InvalidBetException extends Exception {
    
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	Rational betAmount;
    
    public InvalidBetException(Rational gotBetAmount) {
        betAmount = gotBetAmount;
    }
        
    @Override
    public String getMessage() {
        return "bet amount = " + betAmount.toString();
    }

}
